package cn.zn.modules.zzsys.cur.controller;

import cn.zn.framework.common.utils.R;
import cn.zn.modules.zzsys.cur.service.TSysDicDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("zzsys/sysdicdata")
public class TSysDicDataController {
    @Autowired
    private TSysDicDataService tSysDicDataService;

    @GetMapping("list/{typeCode}")
    public R list(@PathVariable String typeCode) {
        return R.ok().put("list", tSysDicDataService.queryByType(typeCode));
    }
}
